package gui_classes;

import java.awt.*;

import javax.swing.*;

import domain.*;

public class NursePage extends DERPBase {
	
	// these panels are put into other panels
	private static NursePanel npanel;

	/**
	 * Create the panel.
	 */
	public NursePage(Nurse nur) {

		setPreferredSize(new Dimension(600,300));
		setLayout(new BorderLayout());
		
		npanel = new NursePanel(nur);
		add(npanel, BorderLayout.WEST);
		
		setPrevious(GUI_Main.lpanel);
	}
	
	public NursePanel getNPanel()
	{
		return this.npanel;
	}
	
	public void display()
	{
		GUI_Main.replacePanel(this);
	}

}
